<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:p="http://primefaces.org/ui">
    <h:body>
        <table width="100%" border="1">
            <tr>
                <td>
					<h:form>
						<p:menubar>
                                                    <p:menuitem value="Home" action="#{mbLogin.navigationToHome}" ajax="false"/>
							<p:menuitem value="Films" ajax="false" action="#{mbFilm.navigationToFilmsOverview}" rendered="#{mbLogin.logedUser!=null}"/>
							<p:submenu label="Settings" rendered="#{mbLogin.logedUser.userType}">
								<p:menuitem value="Users" ajax="false" action="#{mbUser.navigationToUserOverview}"/>
								<p:menuitem value="Email History" ajax="false"/>
								<p:menuitem value="SMTP Settings" ajax="false"/>
								<p:menuitem value="Language Overview" ajax="false"/>
							</p:submenu>
						</p:menubar>
					</h:form>
                </td>
            </tr>
        </table>
    </h:body>
</html>
